<?php

namespace Ensao\AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Ensao\AppBundle\Entity\Dossier
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Ensao\AppBundle\Entity\DossierRepository")
 */
class Dossier
{
     /**
     * @ORM\ManyToMany(targetEntity="Ensao\AppBundle\Entity\Instance", cascade={"persist"})
     */
     protected $instances;

	 /**
     * @ORM\ManyToMany(targetEntity="Ensao\AppBundle\Entity\Adversaire", 		cascade={"persist"})
     */
    protected $adversaires;
	
	 /**
     * @ORM\OneToMany(targetEntity="Paiement", mappedBy="dossier")
     */
    private $Paiements;

    /**
     * @ORM\OneToMany(targetEntity="Proced", mappedBy="dossier")
     */
    private $Proceds;
	/**
     * @ORM\ManyToMany(targetEntity="Ensao\AppBundle\Entity\Client", cascade={"persist"})
	  
     */
    private $clients;
	/**
     * @ORM\ManyToOne(targetEntity="Ensao\AppBundle\Entity\Avocat")
     * @ORM\JoinColumn(nullable=false)
     */
	 
    protected $avocat;
	/**
     * @ORM\ManyToOne(targetEntity="Ensao\AppBundle\Entity\sousCategorie")
    
     */
    protected $sousCategorie;
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

     /**
     * @var string $numDossier
     *
     * @ORM\Column(name="numDossier", type="string", length=255)
     */
    protected $numDossier;
/**
     * @var string $numDossier2
     *
     * @ORM\Column(name="numDossier2", type="string", length=255)
     */
    protected $numDossier2;

    /**
     * @var date $dateCreation
     *
     * @ORM\Column(name="dateCreation", type="date")
     */
    protected $dateCreation;

    /**
     * @var boolean $siComplet
     *
     * @ORM\Column(name="siComplet", type="boolean")
     */
    protected $siComplet;

    /**
     * @var float $estimationHonoraire
     *
     * @ORM\Column(name="estimationHonoraire", type="float")
     */
    protected $estimationHonoraire;

    /**
     * @var text $jugement
     *
     * @ORM\Column(name="jugement", type="text")
     */
    protected $jugement;

      public function __construct()
    {
        
        $this->instances = new \Doctrine\Common\Collections\ArrayCollection();
		$this->adversaires = new \Doctrine\Common\Collections\ArrayCollection();
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set numDossier
     *
     * @param integer $numDossier
     */
    public function setNumDossier($numDossier)
    {
        $this->numDossier = $numDossier;
    }

    /**
     * Get numDossier
     *
     * @return integer 
     */
    public function getNumDossier()
    {
        return $this->numDossier;
    }

    /**
     * Set numDossier2
     *
     * @param integer $numDossier2
     */
    public function setNumDossier2($numDossier2)
    {
        $this->numDossier2 = $numDossier2;
    }

    /**
     * Get numDossier2
     *
     * @return integer 
     */
    public function getNumDossier2()
    {
        return $this->numDossier2;
    }

    /**
     * Set dateCreation
     *
     * @param date $dateCreation
     */
    public function setDateCreation($dateCreation)
    {
        $this->dateCreation = $dateCreation;
    }

    /**
     * Get dateCreation
     *
     * @return date 
     */
    public function getDateCreation()
    {
        return $this->dateCreation;
    }

    /**
     * Set siComplet
     *
     * @param boolean $siComplet
     */
    public function setSiComplet($siComplet)
    {
        $this->siComplet = $siComplet;
    }

    /**
     * Get siComplet
     *
     * @return boolean 
     */
    public function getSiComplet()
    {
        return $this->siComplet;
    }

    /**
     * Set estimationHonoraire
     *
     * @param float $estimationHonoraire
     */
    public function setEstimationHonoraire($estimationHonoraire)
    {
        $this->estimationHonoraire = $estimationHonoraire;
    }

    /**
     * Get estimationHonoraire
     *
     * @return float 
     */
    public function getEstimationHonoraire()
    {
        return $this->estimationHonoraire;
    }

    /**
     * Set jugement
     *
     * @param text $jugement
     */
    public function setJugement($jugement)
    {
        $this->jugement = $jugement;
    }

    /**
     * Get jugement
     *
     * @return text 
     */
    public function getJugement()
    {
        return $this->jugement;
    }


    /**
     * Removec
     *
     * @param Instance $instance
     * @internal param \Ensao\AppBundle\Entity\Instance $instances
     */
    public function removeInstance(\Ensao\AppBundle\Entity\Instance $instance) 
    {
        
        $this->instances->removeElement($instance);
    }


    /**
     * Set avocat
     *
     * @param \Ensao\AppBundle\Entity\Avocat $avocat
     */
    public function setAvocat(\Ensao\AppBundle\Entity\Avocat $avocat)
    {
        $this->avocat = $avocat;
    }

    /**
     * Get avocat
     *
     * @return Ensao\AppBundle\Entity\Avocat 
     */
    public function getAvocat()
    {
        return $this->avocat;
    }

    /**
     * Set sousCategorie
     *
     * @param \Ensao\AppBundle\Entity\sousCategorie $sousCategorie
     */
    public function setSousCategorie(\Ensao\AppBundle\Entity\sousCategorie $sousCategorie)
    {
        $this->sousCategorie = $sousCategorie;
    }

    /**
     * Get sousCategorie
     *
     * @return Ensao\AppBundle\Entity\sousCategorie 
     */
    public function getSousCategorie()
    {
        return $this->sousCategorie;
    }

    /**
     * Add instances
     *
     * @param \Ensao\AppBundle\Entity\Instance $instances
     */
    public function addInstance(\Ensao\AppBundle\Entity\Instance $instances)
    {
        $this->instances[] = $instances;
    }

    /**
     * Get instances
     *
     * @return Doctrine\Common\Collections\Collection 
     */
    public function getInstances()
    {
        return $this->instances;
    }


    /**
     * Add adversaires
     *
     * @param \Ensao\AppBundle\Entity\Adversaire $adversaires
     */
    public function addAdversaire(\Ensao\AppBundle\Entity\Adversaire $adversaires)
    {
        $this->adversaires[] = $adversaires;
    }
 /**
     * Removec
     *
     * @param Ensao\AppBundle\Entity\Adversaire $adversaires
     */
    public function removeAdversaire(\Ensao\AppBundle\Entity\Adversaire $adversaire) 
    {
        
        $this->adversaires->removeElement($adversaire);
    }

   
   
   
    /**
     * Get adversaires
     *
     * @return Doctrine\Common\Collections\Collection 
     */
    public function getAdversaires()
    {
        return $this->adversaires;
    }

    /**
     * Add Paiements
     *
     * @param Ensao\AppBundle\Entity\Paiement $paiements
     */
    public function addPaiement(\Ensao\AppBundle\Entity\Paiement $paiements)
    {
        $this->Paiements[] = $paiements;
    }

    /**
     * Get Paiements
     *
     * @return Doctrine\Common\Collections\Collection 
     */
    public function getPaiements()
    {
        return $this->Paiements;
    }

    /**
     * Add clients
     *
     * @param Ensao\AppBundle\Entity\Client $clients
     */
    public function addClient(\Ensao\AppBundle\Entity\Client $clients)
    {
        $this->clients[] = $clients;
    }

    /**
     * Get clients
     *
     * @return Doctrine\Common\Collections\Collection 
     */
    public function getClients()
    {
        return $this->clients;
    }

    /**
     * Add Proceds
     *
     * @param Ensao\AppBundle\Entity\Proced $proceds
     */
    public function addProced(\Ensao\AppBundle\Entity\Proced $proceds)
    {
        $this->Proceds[] = $proceds;
    }

    /**
     * Get Proceds
     *
     * @return Doctrine\Common\Collections\Collection 
     */
    public function getProceds()
    {
        return $this->Proceds;
    }
}